package com.kingyea.mobilepolice.apimanage.serverapimonitor.service;

import com.kingyea.mobilepolice.apimanage.serverapimonitor.bean.ServerApiMonitor;
import com.kingyea.mobilepolice.apimanage.sysvo.bean.AllCondition;
import com.kingyea.mobilepolice.apimanage.utils.page.PageInfo;

import java.util.List;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description ServerApiMonitor 接口
 * @date Created in 2018-05-19 14:08:21
 */
public interface ServerApiMonitorService {

    /**
     * 通过ID查找对象
     *
     * @param id
     * @return
     */
    ServerApiMonitor getById(Integer id);

    /**
     * 列表
     *
     * @param condition
     * @return
     */
    List<ServerApiMonitor> list(AllCondition condition);

    PageInfo<List<ServerApiMonitor>> search(AllCondition condition) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     */
    boolean deleteById(Integer id);

    /**
     * 添加
     *
     * @param serverApiMonitor
     * @return
     */
    boolean save(ServerApiMonitor serverApiMonitor);

    /**
     * 更新
     *
     * @param serverApiMonitor
     * @return
     */
    boolean update(ServerApiMonitor serverApiMonitor);
}
